package ord.csmz.xg2333.Example06;

public class Example06 {
    public static void main(String[] args){
        String s = " I like Java ";
        System.out.println(s+"将Java修改成Python结果为："+s.replace("Java","Python"));
        System.out.println(s+"将前后空格删除的结果为："+s.trim());
        System.out.println(s+"将全部空格删除结果为："+s.replace(" ",""));
    }
}
